MPGetNextTaskID

Obtains the next task ID in the list of available tasks.

OSStatus MPGetNextTaskID (
                     MPProcessID owningProcessID,
                     MPTaskID * taskID);
owningProcessID
A value of type MPProcessID that indicates the ID of the process (typically the application) that owns the tasks. This ID is the same as the process ID handled by the Code Fragment Manager.

taskID
A pointer to variable of type MPTaskID . On return, taskID points to ID of the next task in the list of tasks.

function result
A result code. See Result Codes for a list of possible values.
DESCRIPTION
By iterating on this function, you can obtain the IDs of all the tasks in a given process. These tasks may be running, ready, or blocked. Generally you would only use this function in diagnostic programs.

VERSION NOTES
Introduced with Multiprocessing Services 2.1.

© 1999 Apple Computer, Inc. – (Last Updated 17 Nov 99)